﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CtpMaker
{
    public partial class MakeFile : Form
    {
        public MakeFile()
        {
            InitializeComponent();
        }

        private void btnCtpEnum_Click(object sender, EventArgs e)
        {
            SchemaOne.MakeCtpEnumFile();
            MessageBox.Show("ok");
        }

        private void btnStruct_Click(object sender, EventArgs e)
        {
            SchemaOne.MakeCtpStructFile();
            MessageBox.Show("ok");
        }

        private void btnConverter_Click(object sender, EventArgs e)
        {
            SchemaOne.MakeConverterFile();
            MessageBox.Show("ok");
        }

        private void btnEvent_Click(object sender, EventArgs e)
        {
            SchemaOne.MakeCtpEventFile();
            MessageBox.Show("ok");
        }

        private void btnSpi_Click(object sender, EventArgs e)
        {
            SchemaOne.MakeCtpSpiFile();
            MessageBox.Show("ok");
        }

        private void btnApi_Click(object sender, EventArgs e)
        {
            SchemaOne.MakeCtpTdApiFile();
            MessageBox.Show("ok");
        }
    }
}
